/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.edu.upc.sad.util;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author aalanya
 */
public class Conexion
{
  //la modificacion de la conexion depen
  private static final String URL = "jdbc:mysql://localhost/dbreserva?user=root&password=admin";

  public static Connection getConnection() {
    Connection connection = null;
    try {
        Class.forName("com.mysql.jdbc.Driver").newInstance();
        connection = DriverManager.getConnection(URL);
    } catch (Exception e) {
        e.printStackTrace();
    }
    return connection;
  }

}
